package setting

// Setting
type Setting struct {
	// Main nginx中的main并不是一个块，我们这里分散定义
	LogMode string `yaml:"logMode"`
	LogFileSetting LogFileSetting `yaml:"logFileSetting"`
	LogKafkaSetting LogKafkaSetting `yaml:"logKafkaSetting"`
	LogElasticsearchSetting LogElasticsearchSetting `yaml:"logElasticsearchSetting"`
}

type LogFileSetting struct {
	Path string `yaml:"path"`
}

type LogKafkaSetting struct {
	Host string `yaml:"host"`
	Port string `yaml:"port"`
	Topic string `yaml:"topic"`
}

type LogElasticsearchSetting struct {
	Host string `yaml:"host"`
	Port string `yaml:"port"`
	Index string `yaml:"index"`
}